local __all_categorie_list__ = {
	{
		name = "xxx",
		text = "xxx",
		color = "#000000",
		blocktypes = {"blocktype", "blocktype"},
	}
}

local __all_block_list__ = {
	-- {
	-- 	type = "lua_number",
	-- 	message = "%1"

	-- },
	{
		type = "lua_print",
		message = "打印 %1 册数",
		arg = {
			{
				type = "field_input",
				name = "value",
				text = "这是测试"
			}
		},
		output = false,
		previousStatement = true,
		nextStatement = true,
		code_description = [[]],
	}, 
	{
		type = "lua_if",
		message = "如果 %1 那么 %2",
		arg = {
			{
				type = "field_input",
				name = "condition"
			},
			{
				type = "input_statement",
				name = "code"
			}
		},
		previousStatement = true,
		nextStatement = true,
	},
	{
		type = "lua_if_else",
		message = "如果 %1 那么 %2 否则 %3",
		arg = {
			{
				type = "field_input",
				name = "condition",
				text = "真"
			},
			{
				type = "input_statement",
				name = "true_code",
			},
			{
				type = "input_statement",
				name = "false_code",
			},
		},
		previousStatement = true,
		nextStatement = true,
	},
}

local __all_categorie_map__ = {};
for _, category in ipairs(__all_categorie_list__) do
	__all_categorie_map__[category.name] = category;
end

local __all_block_map__ = {};
for _, block in ipairs(__all_block_list__) do
	__all_block_map__[block.type] = block;
end

return {
	__all_block_list__ = __all_block_list__,
	__all_block_map__ = __all_block_map__,
	__all_categorie_list__ = __all_categorie_list__,
	__all_categorie_map__ = __all_categorie_map__,
}